package com.lebang.feign.fallback;

import com.lebang.feign.NewsEarnedFeign;
import com.lebang.model.RequestUserInfo;
import com.lebang.model.back.Result;
import com.lebangweb.response.JsonData;
import org.springframework.stereotype.Component;

import static com.lebang.feign.draw.CommonFallBack.FAIL_JSON;
import static com.lebang.feign.draw.CommonFallBack.FAIL_RESULT;

/**
 * @Author: hwq
 * @Date: 2020/3/24 11:46
 * @Version 1.0
 */
@Component
public class NewsEarnedFallback implements NewsEarnedFeign {


    @Override
    public JsonData enable(RequestUserInfo request, String key) {
        return  FAIL_JSON;
    }

    @Override
    public JsonData list(RequestUserInfo request, String key, Long page, Integer limit) {
        return FAIL_JSON;
    }

    @Override
    public JsonData pull(RequestUserInfo request) {
        return  FAIL_JSON;
    }

    @Override
    public Result<Integer> push(RequestUserInfo request, Long id) {
       return FAIL_RESULT;
    }

    @Override
    public Result<Integer> doubleCount(RequestUserInfo request, Long id) {
        return FAIL_RESULT;
    }
    @Override
    public Result<Integer> total(RequestUserInfo request) {
        return FAIL_RESULT;
    }

    @Override
    public JsonData category(RequestUserInfo userInfo) {
        return  FAIL_JSON;
    }

    @Override
    public JsonData news(String category, Long page, Integer limit) {
        return  FAIL_JSON;
    }

    @Override
    public JsonData getNewsCategory(RequestUserInfo request) {
        return  FAIL_JSON;
    }

    @Override
    public JsonData updateCategory(RequestUserInfo request, String categorys) {
        return  FAIL_JSON;
    }

    @Override
    public JsonData getRecord(RequestUserInfo request, Long page, Integer limit) {
        return FAIL_JSON;
    }

    @Override
    public JsonData collect(RequestUserInfo request, String title, String source, String itemId) {
        return FAIL_JSON;
    }

    @Override
    public JsonData delCollect(RequestUserInfo request, String itemId) {
        return FAIL_JSON;
    }

    @Override
    public JsonData isCollect(RequestUserInfo request, String itemId) {
        return FAIL_JSON;
    }

    @Override
    public JsonData get(RequestUserInfo userInfo, String itemId) {
        return FAIL_JSON;
    }


}
